package com.huabo.monitor.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hbfk.util.JsonBean;
import com.huabo.monitor.oracle.entity.TblAssessStaff;
import com.huabo.monitor.oracle.mapper.TblAssessStaffMapper;
import com.huabo.monitor.service.TblAssessStaffService;

import javax.annotation.Resource;

public class TblAssessStaffServiceImpl implements TblAssessStaffService {

    @Resource
    private TblAssessStaffMapper tblAssessStaffMapper;

    @Override
    public JsonBean findByPage(Integer pageNumber, Integer pageSize, Integer assNumnber, String assName, String startDate, String endDate) {
        if (null == pageNumber || pageNumber <= 0){
            pageNumber = 1;
        }
        if (pageSize <= 0 || pageSize > 15){
            pageSize = 15;
        }


        Page<TblAssessStaff> page = new Page<>();


        LambdaQueryWrapper<TblAssessStaff> wrapper = Wrappers.<TblAssessStaff>lambdaQuery();
        wrapper.eq(TblAssessStaff::getAssStaffId, assNumnber);
        tblAssessStaffMapper.selectPage(page, wrapper);


        return null;

    }
}
